package com.rajaev.dtu.tractor.app.service;

import com.github.pagehelper.PageInfo;
import com.rajaev.dtu.tractor.domain.entity.BatteryInspectTaskDetail;
import com.rajaev.dtu.tractor.domain.entity.BatteryInspectTaskPo;
import com.rajaev.dtu.tractor.infrastructure.base.vo.BatteryInspectVo;


import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Created with IDEA
 * @author: tianjie
 * @Date:2019/4/11
 * @Time:10:16
 */
public interface BatteryInspectService {

    /**
     * 提交一个任务
     * @param userId
     */
    void submitAInspectTask(Integer userId);


    /**
     * 查询未完成的任务
     * @return
     */
    List<BatteryInspectTaskPo> selectNoCompleteTask();

    /**
     * 分页查询巡检任务
     * @param pageSize
     * @param pageNum
     * @return
     */
     PageInfo<BatteryInspectVo> pageQueryInspectVo(HttpServletRequest request, Integer pageSize, Integer pageNum);


    /**
     * 分页查询巡检详情
     * @param pageSize 每页条数
     * @param pageNum 页号
     * @param taskId 任务编号
     * @param keyword 关键字
     * @param orderField 排序字段faultScore:故障评分,socScore：soc评分,tScore 温度评分,subTScore 温差评分,subVScore 压差评分,totalScore 总得分评分
     * @return
     */
    PageInfo<BatteryInspectTaskDetail> pageQueryInspectDetail(Integer pageSize, Integer pageNum, Integer taskId, String keyword, String orderField, Integer order);


}
